package com.pubinfo.passbook.common.service.master;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pubinfo.passbook.common.entity.TRuleParam;
import com.pubinfo.passbook.common.entity.TSystemRole;
import com.pubinfo.passbook.common.model.dto.rule.RuleParam;
import com.pubinfo.passbook.common.model.http.eip.UserInfo;
import com.pubinfo.passbook.common.model.vo.base.JsonResult;

import java.util.Map;

/**
 *
 */
public interface TRuleParamService extends IService<TRuleParam> {
  boolean saveRuleParam(TRuleParam ruleParam, UserInfo userInfo, TSystemRole systemRole);
  
  Map<String, Object> selectRuleParam(String districtId);
  
  IPage<TRuleParam> selectRuleParam(RuleParam param, UserInfo userInfo, TSystemRole systemRole);
  
  boolean updateRuleParam(TRuleParam ruleParam, UserInfo userInfo, TSystemRole systemRole);
  
  JsonResult<String> removeRuleParam(String id, UserInfo userInfo, TSystemRole systemRole);
}
